<link href="styles/offer.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.offer_list .Contant,.offer_li_list .Contant {
	width: 545px;
	padding: 0;
	background: none;
}

.offer_list .Contant .topicTxt,.offer_li_list .Contant .topicTxt {
	padding: 0 0 15px;
}

.offer_num {
	top: 1px;
}
</style>
<!--{loop $offer_list $val}-->
<div id="topic_list_25">
	<div class=" " id="topic_list_25">
		<div class="avatarL">
			<div class="avatar">
				<a href="javascript:void(0)" class="nude_face"><img width="70"
					height="70" src="{$members[$val[uid]]['face']}"
					onerror="javascript:faceError(this);" /></a>





			</div>
			<div class="vText">
				<a href="index.php?mod=$val[uid]&type=offer">{$members[$val[uid]]['nickname']}{$members[$val[uid]]['validate_html']}</a>
			</div>
		</div>
		<div id="user_25_user"></div>


		<div class="Contant" style="position: relative;">
			<div id="topic_lists_25" style="_overflow: hidden">



				<div class="topicTxt">
					<a href="index.php?mod=offer&code=offerList&id={$val[id]}">{$val[title]}</a>
					{$val[content]}



					<!--{loop $val[images] $iv}-->
					<img src="{$iv[photo]}" width="150" height="150" class="showcursor">
					<!--{/loop}-->



					<br>发布时间:{echo date("Y-m-d",$val[startTime])} <br>分数剩余:{$val[num]}<br>
					过期时间:{echo date("Y-m-d",$val[stopTime])}<br>
					状态:{$val[statusName]} <br> 点击数:$val[clickNum]<br>
					回复数:$val[replayNum]<br>
					<!--{if 'admin' == MEMBER_ROLE_TYPE }-->
					<!--{if $val[recommend]!=1 }-->
					<a href="javascript:recommend('$val[id]')">设为推荐</a>
					<!--{/if}-->
					<!--{if $val[recommend]==1 }-->
					<a href="javascript:unrecommend('$val[id]')">取消推荐</a>
					<!--{/if}-->
					<!--{/if}-->
				</div>


			</div>
		</div>

	</div>
</div>
<!--{/loop}-->

<script>
	function recommend(id) {
		$.post("index.php?mod=offer&code=recommend", {
			"id" : id
		}, function(response) {
			if (response.status == 0) {
				alert(response.info);
			} else {
				location.reload();
			}
		});

	}
	function unrecommend(id) {
		$.post("index.php?mod=offer&code=unrecommend", {
			"id" : id
		}, function(response) {
			if (response.status == 0) {
				alert(response.info);
			} else {
				location.reload();
			}
		});

	}
</script>

<!--{if $page_arr[html]}-->
<div class="pageStyle">
	<li>{$page_arr[html]}</li>
</div>
<!--{/if}-->